package cn.jyj.springframework.context;

import cn.jyj.springframework.beans.BeansException;
import cn.jyj.springframework.beans.factory.Aware;

/**
 * Interface to be implemented by any object that wishes to be notifiedof the {@link ApplicationContext} that it runs in.
 *
 * 实现此接口，既能感知到所属的 ApplicationContext
 *
 * @Author 老顽固小可爱
 * @Date 2023/1/9 14:29
 * @Version 1.0
 */
public interface ApplicationContextAware extends Aware {

    void setApplicationContext(ApplicationContext applicationContext) throws BeansException;

}

